﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Forms/FormAdmin.master" AutoEventWireup="true" CodeBehind="FlexiForm.aspx.cs" Inherits="HRdex_Final.Forms.WebForm6" %>
<%@ Register assembly="EO.Web" namespace="EO.Web" tagprefix="eo" %>


<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>


<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager2" runat="server">
    </asp:ScriptManager>


    <div align="center">
    
        <div>
        </div>
        <asp:Panel ID="Panel1" runat="server">
        
    <table style="background-color: #FFFFFF; width: 720px;">
  
        <tr>
             <td colspan="4" style="font-size: xx-large">

                        FLEXI FORM 
             </td> 
        </tr>
  
        <tr>
             <td colspan="4" style="text-align: right">

                        <asp:Label 
                            ID="lblDatePub" runat="server" style="text-align: right"></asp:Label>
             </td> 
        </tr>
  
    <tr>
             <td colspan="4" hidden="hidden">

                        FLEXI ID:
                <asp:TextBox ID="txtFlexiID" runat="server" Width="280px" Visible="False"></asp:TextBox>
             </td> 
    </tr>
        <tr>
            <td>
                Employee No:<asp:RequiredFieldValidator 
                    ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEmpNo" 
                    ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td style="width: 133px">
                <asp:TextBox ID="txtEmpNo" runat="server" Width="132px" 
                     Height="20px"></asp:TextBox>
                </td>
            <td>
                Employee Name:<asp:RequiredFieldValidator 
                    ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtEmpName" 
                    ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                <asp:TextBox ID="txtEmpName" runat="server" Width="280px"></asp:TextBox>
                </td>
            </tr>
        <tr>
            <td>
                Position<asp:RequiredFieldValidator 
                    ID="RequiredFieldValidator4" runat="server" ControlToValidate="ddlPositions" 
                    ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td style="width: 133px">
                <asp:DropDownList ID="ddlPositions" runat="server" DataSourceID="Position" 
                    DataTextField="catPositionsName" DataValueField="catPositionsID" Height="18px" 
                    Width="119px">
                </asp:DropDownList>
                <asp:SqlDataSource ID="Position" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                    SelectCommand="SELECT * FROM [catPositions]"></asp:SqlDataSource>
            </td>
            <td>
                Office<asp:RequiredFieldValidator 
                    ID="RequiredFieldValidator5" runat="server" ControlToValidate="ddlOffice" 
                    ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                <asp:DropDownList ID="ddlOffice" runat="server" DataSourceID="office" 
                    DataTextField="CollegeName" DataValueField="CollegeID" Height="18px" 
                    Width="287px">
                </asp:DropDownList>
                <asp:SqlDataSource ID="office" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                    SelectCommand="SELECT * FROM [catCollege]"></asp:SqlDataSource>
            </td>
            </tr>
        <tr>
            <td colspan="4" style="text-align: left">
                Department&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:DropDownList ID="ddlDepartment" runat="server" DataSourceID="adds" 
                    DataTextField="DepartmentName" DataValueField="DeptID" Height="21px" 
                    Width="269px">
                </asp:DropDownList>
                <asp:SqlDataSource ID="adds" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                    SelectCommand="SELECT * FROM [catDepartment]"></asp:SqlDataSource>
            </td>
            </tr>
        <tr>
            <td colspan="4">
                Original Time Schedule</td>
            </tr>
        <tr>
            <td>
                Date
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="txtODate" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td style="width: 133px">
                Time
            </td>
            <td colspan="2">    
                Nature of Activity
                <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                    ControlToValidate="txtActivityReason" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox ID="txtODate" runat="server"></asp:TextBox>
                <asp:CalendarExtender ID="txtODate_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txtODate">
                </asp:CalendarExtender>
                
            </td>
            <td style="width: 133px">
                <asp:DropDownList ID="ddlOhr" runat="server" Height="22px" Width="45px" 
                    AutoPostBack="True">
                     <asp:ListItem Value="1"></asp:ListItem>
                    <asp:ListItem Value="2"></asp:ListItem>
                    <asp:ListItem Value="3"></asp:ListItem>
                    <asp:ListItem Value="4"></asp:ListItem>
                    <asp:ListItem Value="5"></asp:ListItem>
                    <asp:ListItem Value="6"></asp:ListItem>
                    <asp:ListItem Value="7"></asp:ListItem>
                    <asp:ListItem Value="8"></asp:ListItem>
                    <asp:ListItem Value="9"></asp:ListItem>
                    <asp:ListItem Value="10"></asp:ListItem>
                    <asp:ListItem Value="11"></asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="ddlOmin" runat="server" Height="22px" Width="45px" 
                    AutoPostBack="True">
                    <asp:ListItem Value="00"></asp:ListItem>
                    <asp:ListItem Value="05"></asp:ListItem>
                    <asp:ListItem Value="10"></asp:ListItem>
                    <asp:ListItem Value="15"></asp:ListItem>
                    <asp:ListItem Value="20"></asp:ListItem>
                    <asp:ListItem Value="25"></asp:ListItem>
                    <asp:ListItem Value="30"></asp:ListItem>
                    <asp:ListItem Value="35"></asp:ListItem>
                    <asp:ListItem Value="40"></asp:ListItem>
                    <asp:ListItem Value="45"></asp:ListItem>
                    <asp:ListItem Value="50"></asp:ListItem>
                    <asp:ListItem Value="55"></asp:ListItem>
                </asp:DropDownList>
                &nbsp;<asp:Label ID="lblDash" runat="server" Text="-"></asp:Label>
&nbsp;<asp:DropDownList ID="ddlOhr0" runat="server" Height="22px" Width="45px" 
                    AutoPostBack="True">
                     <asp:ListItem Value="1"></asp:ListItem>
                    <asp:ListItem Value="2"></asp:ListItem>
                    <asp:ListItem Value="3"></asp:ListItem>
                    <asp:ListItem Value="4"></asp:ListItem>
                    <asp:ListItem Value="5"></asp:ListItem>
                    <asp:ListItem Value="6"></asp:ListItem>
                    <asp:ListItem Value="7"></asp:ListItem>
                    <asp:ListItem Value="8"></asp:ListItem>
                    <asp:ListItem Value="9"></asp:ListItem>
                    <asp:ListItem Value="10"></asp:ListItem>
                    <asp:ListItem Value="11"></asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="ddlOmin0" runat="server" Height="22px" Width="45px" 
                    AutoPostBack="True">
                    <asp:ListItem Value="00"></asp:ListItem>
                    <asp:ListItem Value="05"></asp:ListItem>
                    <asp:ListItem Value="10"></asp:ListItem>
                    <asp:ListItem Value="15"></asp:ListItem>
                    <asp:ListItem Value="20"></asp:ListItem>
                    <asp:ListItem Value="25"></asp:ListItem>
                    <asp:ListItem Value="30"></asp:ListItem>
                    <asp:ListItem Value="35"></asp:ListItem>
                    <asp:ListItem Value="40"></asp:ListItem>
                    <asp:ListItem Value="45"></asp:ListItem>
                    <asp:ListItem Value="50"></asp:ListItem>
                    <asp:ListItem Value="55"></asp:ListItem>
                </asp:DropDownList>
                <asp:TextBox ID="txtOTime" runat="server" Width="115px"></asp:TextBox>
                <br />
            </td>
            <td colspan = "2">
            
                <asp:TextBox ID="txtActivityReason" runat="server" Height="63px" 
                    style="text-align: left" Width="305px"></asp:TextBox>
            
            </td>
            <tr>
                <td colspan="4">
                    Flexi Time Schedule</td>
            </tr>
            <tr>
                <td>
                    Date
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                        ControlToValidate="txtODate" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
                <td style="width: 133px">
                    Time
                </td>
                <td>
                    &nbsp;</td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:TextBox ID="txtfDate" runat="server" Width="115px"></asp:TextBox>
                    <asp:CalendarExtender ID="txtfDate_CalendarExtender" runat="server" 
                        Enabled="True" TargetControlID="txtfDate">
                    </asp:CalendarExtender>
                </td>
                <td style="width: 133px">
                    <asp:DropDownList ID="ddlFlexiHour" runat="server" AutoPostBack="True" 
                        Height="22px" Width="45px">
                        <asp:ListItem Value="1"></asp:ListItem>
                        <asp:ListItem Value="2"></asp:ListItem>
                        <asp:ListItem Value="3"></asp:ListItem>
                        <asp:ListItem Value="4"></asp:ListItem>
                        <asp:ListItem Value="5"></asp:ListItem>
                        <asp:ListItem Value="6"></asp:ListItem>
                        <asp:ListItem Value="7"></asp:ListItem>
                        <asp:ListItem Value="8"></asp:ListItem>
                        <asp:ListItem Value="9"></asp:ListItem>
                        <asp:ListItem Value="10"></asp:ListItem>
                        <asp:ListItem Value="11"></asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlFlexiMin" runat="server" AutoPostBack="True" 
                        Height="22px" Width="45px">
                        <asp:ListItem Value="00"></asp:ListItem>
                        <asp:ListItem Value="05"></asp:ListItem>
                        <asp:ListItem Value="10"></asp:ListItem>
                        <asp:ListItem Value="15"></asp:ListItem>
                        <asp:ListItem Value="20"></asp:ListItem>
                        <asp:ListItem Value="25"></asp:ListItem>
                        <asp:ListItem Value="30"></asp:ListItem>
                        <asp:ListItem Value="35"></asp:ListItem>
                        <asp:ListItem Value="40"></asp:ListItem>
                        <asp:ListItem Value="45"></asp:ListItem>
                        <asp:ListItem Value="50"></asp:ListItem>
                        <asp:ListItem Value="55"></asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;<asp:Label ID="lblDash0" runat="server" Text="-"></asp:Label>
                    &nbsp;<asp:DropDownList ID="ddlFlexihr0" runat="server" AutoPostBack="True" 
                        Height="22px" Width="45px">
                        <asp:ListItem Value="1"></asp:ListItem>
                        <asp:ListItem Value="2"></asp:ListItem>
                        <asp:ListItem Value="3"></asp:ListItem>
                        <asp:ListItem Value="4"></asp:ListItem>
                        <asp:ListItem Value="5"></asp:ListItem>
                        <asp:ListItem Value="6"></asp:ListItem>
                        <asp:ListItem Value="7"></asp:ListItem>
                        <asp:ListItem Value="8"></asp:ListItem>
                        <asp:ListItem Value="9"></asp:ListItem>
                        <asp:ListItem Value="10"></asp:ListItem>
                        <asp:ListItem Value="11"></asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlFleximin1" runat="server" AutoPostBack="True" 
                        Height="22px" Width="45px">
                        <asp:ListItem Value="00"></asp:ListItem>
                        <asp:ListItem Value="05"></asp:ListItem>
                        <asp:ListItem Value="10"></asp:ListItem>
                        <asp:ListItem Value="15"></asp:ListItem>
                        <asp:ListItem Value="20"></asp:ListItem>
                        <asp:ListItem Value="25"></asp:ListItem>
                        <asp:ListItem Value="30"></asp:ListItem>
                        <asp:ListItem Value="35"></asp:ListItem>
                        <asp:ListItem Value="40"></asp:ListItem>
                        <asp:ListItem Value="45"></asp:ListItem>
                        <asp:ListItem Value="50"></asp:ListItem>
                        <asp:ListItem Value="55"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:TextBox ID="txtfTime" runat="server" Width="115px"></asp:TextBox>
                </td>
                <tr>
                    <td colspan="4">
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click" 
                            Text="Send" />
                        <asp:Button ID="btnClear" runat="server" onclick="btnClear_Click" 
                            Text="Clear" />
                    </td>
                </tr>
            </tr>
        </tr>
    </table>
 </asp:Panel> 


 <div ID="divMsg" align="center" style="height:200px">
 <br />
 <br />
  <asp:Label ID="lblConfirmationMessage" runat="server" ForeColor="#3366FF" 
         Font-Bold="True" Font-Size="Large"></asp:Label>
  </div>


    <table id="approval" align="right">
    <tr>
        <td>
            <asp:Label ID="lblChair" runat="server" Text="Chairperson/Supervisor"></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="ddlApprovalHead" runat="server">
                <asp:ListItem ></asp:ListItem>
                <asp:ListItem Value="Denied">Denied</asp:ListItem>
                <asp:ListItem Value="Approved">Approved</asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox ID="txtAppChairflexi" runat="server"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblDean" runat="server" Text="Dean/Director"></asp:Label>
        &nbsp;</td>
        <td>
            <asp:DropDownList ID="ddlApprovalDean" runat="server">
                <asp:ListItem></asp:ListItem>
                <asp:ListItem Value="Denied">Denied</asp:ListItem>
                <asp:ListItem Value="Approved">Approved</asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox ID="txtAppDeanflexi" runat="server"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblDirector" runat="server" Text="Human Resource Director"></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="ddlApprovalHR" runat="server">
                <asp:ListItem></asp:ListItem>
                <asp:ListItem Value="Denied">Denied</asp:ListItem>
                <asp:ListItem Value="Approved">Approved</asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox ID="txtAppHRflexi" runat="server"></asp:TextBox>
        </td>
    </tr>   
 
    </table>
</div>

</asp:Content>
